home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / bcb.zip / UTIL.BCD < prev   
Text File  |  1986-06-20  |  4KB  |  192 lines

  1. ;**************************************************
  2. ; Data File: Util.bcd
  3. ; Last Modified : 06-20-86
  4. ; Purpose : To provide Menu utility support for U.C.C.'s Batch Commander
  5. ;**************************************************
  6.  
  7.  
  8. T****** General Utilities *******
  9. oReturn to Previous Menu
  10. lMENU.BCD
  11.  
  12. oDirectory listing
  13. iDrive "d:" {drive}
  14. iSubdirectory "\sub\" {sub}
  15. iFile Name "FILENAME.EXT" {filename}
  16. dSwitches /w to go wide
  17. d         /p to pause
  18. iEnter switch(es) {switch}
  19. bcls
  20. bdir {drive}{sub}{filename}{switch}
  21. bpause
  22.  
  23.  
  24. oDirectory of A:
  25. bcls
  26. bdir a:/w/p
  27. becho Type Exit to Return to Batch Commander
  28. bcommand
  29.  
  30. oDirectory of B:
  31. bcls
  32. bdir b:/w/p
  33. becho Type Exit to Return to Batch Commander
  34. bcommand
  35.  
  36. oChange current Path
  37. iEnter new Path {npath}
  38. bpath {npath}
  39.  
  40. oFormat Floppy in drive A:
  41. dFormatting with a System 
  42. d(Bootable) requires a /S
  43. d
  44. dEnter /S if you want the disk
  45. ibootable {system}
  46. bformat a:/v{system}
  47.  
  48. oFormat Floppy in drive B:
  49. dFormatting with a System
  50. d(Bootable) requires a /S
  51. d
  52. dEnter /S if you want the disk
  53. ibootable {system}
  54. bformat b:/v{system}
  55.  
  56. oCheck the Disk
  57. iEnter the Drive {drv}
  58. dIn order to correct errors
  59. dyou must enter a /F
  60. iEnter "/F" to Correct errors {/f}
  61. bcls
  62. bchkdsk {drv}{/f}
  63. bpause
  64.  
  65. oAssign a disk drive
  66. iFrom Disk Drive {from}
  67. iTo Disk Drive {to}
  68. bassign {from} = {to}
  69.  
  70. oUn Assign a disk
  71. bassign
  72.  
  73. oSet R/W Attribute
  74. iFile Name {file}
  75. d+ for on
  76. d- for off
  77. i+/- {on/off}
  78. bAttrib  {on/off}R {file}
  79.  
  80. oSet a Mode
  81. iEnter command {command}
  82. bmode {command}
  83.  
  84. oDelete a file
  85. iEnter Directory {sub}
  86. iEnter File Name {file}
  87. bcls
  88. bif {file} == *.* goto abort
  89. becho del {sub}{file}
  90. bpause
  91. bdel {sub}{file}
  92. bgoto end
  93. b:abort
  94. becho Cannot Delete Entire Directory
  95. bpause
  96. b:end
  97.  
  98.  
  99. t********* Back Up  *************
  100. oBack Entire Disk
  101. iFrom Disk {from}
  102. iTo Disk {to}
  103. bcls
  104. bBackup {from} {to}/s
  105.  
  106. oBackup Only New Work
  107. iFrom Disk {from}
  108. iTo Disk {to}
  109. bcls
  110. bBackup {from} {to}/s/m
  111.  
  112. oBackup Files Since Date
  113. iFrom Disk {from}
  114. iTo Disk {to}
  115. iFrom What Date {date}
  116. bcls
  117. bBackup {from} {to}/s/d {date}
  118.  
  119.  
  120. t*********** Programs *************
  121.  
  122.  
  123.  
  124. oRun Basic
  125. iProgram Name {prog}
  126. dSwitches Can be used for
  127. dthe # of files /F:# the size of
  128. dfiles /S:# the com buffer as 
  129. dwell as others.  Enter a switch
  130. iif any {switch}
  131. bbasica {prog} {switch}
  132.  
  133. oCompile Basic Programs
  134. iEnter Basic File Name {bfile}
  135. dSwitches are /E Error
  136. d             /X Resume
  137. d             /V Event Trap
  138. d             /W Event Trap
  139. d             /A List obj
  140. d             /C Combuffer
  141. iMore .... hit return {junk}
  142. d             /D Debug
  143. d             /N Line #'s
  144. d             /R Array Rows
  145. d             /S Write String
  146. d             /O No Basrun
  147. d   /4/T Basic 80 see manual
  148. iEnter Switches {bswitch}
  149. iFile to link with {addfile}
  150. bbascom {bfile}{bswitch};
  151. blink {bfile} {addfile};
  152.  
  153. oCompile Macro Assembler to Exe
  154. iEnter File Name {asmfile}
  155. iLink With {filelist}
  156. d switches
  157. d   /DSALLOCATION
  158. d   /High
  159. d   /Line
  160. d   /Map
  161. d   /Pause
  162. d   /Stack:size
  163. d   /X
  164. d   /O
  165. iSwitches {switch}
  166. bmasm {asmfile};
  167. blink {asmfile} {filelist} {switch};
  168.  
  169.  
  170. oCompile Macro Assembler to Com
  171. iEnter File Name {asmfile}
  172. iLink With {filelist}
  173. d switches
  174. d   /DSALLOCATION
  175. d   /High
  176. d   /Line
  177. d   /Map
  178. d   /Pause
  179. d   /Stack:size
  180. d   /X
  181. d   /O
  182. iSwitches {switch}
  183. bmasm {asmfile};
  184. blink {asmfile} {filelist} {switch};
  185. bexe2bin {asmfile} {asmfile}.com
  186.  
  187. oTurbo Pascal
  188. bcd \pascal
  189. bturbo
  190. bcd \
  191. 
  192.